#if !defined(AFX_ERRORDLG_H__4CC7F201_BD49_11D2_AC74_B513BED9CC7F__INCLUDED_)
#define AFX_ERRORDLG_H__4CC7F201_BD49_11D2_AC74_B513BED9CC7F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ErrorDlg.h : header file
//

#include "Util\MinLabel.h"
#include "Util\MinButton.h"
#include "Util\BitmapPicture.h"

/////////////////////////////////////////////////////////////////////////////
// CErrorDlg dialog
class IIO;

class CErrorDlg : public CDialog
{
private:
	CString m_strErrorCode;
	CString m_strErrorDescription;

	IIO* m_lnkIO;
	
// Construction
public:
	void PeekAndPump();
	BOOL m_Cancel;
	
	CErrorDlg(IIO* pIO, CString strErrorCode, CString strErrorDescription, CWnd* pParent = NULL);   // standard constructor

	//inserted by ljh
	HBRUSH	m_hBrush;

// Dialog Data
	//{{AFX_DATA(CErrorDlg)
	enum { IDD = IDD_ERROR_DIALOG };
	CMinButton	m_bOK;
	CMinButton	m_bBuzzerOff;
	CEdit	m_eErrorMessage;
	CMinLabel	m_sErrorNumber;
	CMinLabel	m_sErrorNumberTitle;
	CMinLabel	m_sErrorMessageTitle;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CErrorDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CErrorDlg)
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnOkButton();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ERRORDLG_H__4CC7F201_BD49_11D2_AC74_B513BED9CC7F__INCLUDED_)
